const mongoose = require('mongoose')

const Schema = mongoose.Schema

const ArticleSchema = new Schema({
  userName: {
    type: String,
    default: ''
  },
  content: {
    type: String,
    default: ''
  },
  rawContent: {
    type: String,
    default: ''
  },
  publishTime: {
    type: Date,
    default: Date.now // 时间引用
  },
  contentType: '',
  canOperate: false
})

mongoose.model('ArticleSchema', ArticleSchema)